package com.yfp.tissue.mapper;

import com.yfp.common.datascope.annotation.DataScope;
import com.yfp.tissue.domain.Dto.RouteDTO;
import com.yfp.tissue.domain.entity.Route;
import com.yfp.tissue.domain.vo.CompanyListVO;
import com.yfp.tissue.domain.vo.RouteVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RouteMapper {

    List<Route> queryAllByLimit(RouteDTO routeDTO);

    List<Route> queryById(@Param("areaId") String areaId, @Param("enable") String enable);

    @DataScope(deptAlias = "r")
    List<Route> queryArea(Route route);

    List<Route> findList(RouteDTO routeDTO);

    int insert(Route route);

    int update(Route route);

    RouteVO routeDetail(String routeId);

    void updateEnable(Route route);

    List<CompanyListVO> queryCompanyList(@Param("list") List<String> collect);

    Route getById(String routeId);

    void updateByAreaId(Route route);
}
